package com.fin.quant.app.vo;

import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 添加资产到组合请求参数
 */
@Data
public class AddAssetToPortfolioRequest {
    @NotNull(message = "资产ID不能为空")
    private Long assetId;

    @NotNull(message = "数量不能为空")
    @Positive(message = "数量必须大于0")
    private Double quantity;

    @NotNull(message = "成本价不能为空")
    @Positive(message = "成本价必须大于0")
    private Double costPrice;
}
